networking.wireguard.interfaces.<name>.peers.*.presharedKey
Base64 preshared key generated by wg genpsk.
Optional, and may be omitted. This option adds an additional layer of
symmetric-key cryptography to be mixed into the already existing
public-key cryptography, for post-quantum resistance.
Warning: Consider using presharedKeyFile instead if you do not want to store the key in the world-readable Nix store.
- Type
null or string- Default
null- Example
"rVXs/Ni9tu3oDBLS4hOyAUAa1qTWVA3loR8eL20os3I="- Declared
- <nixpkgs/nixos/modules/services/networking/wireguard.nix>